﻿<%@ Page Title="" Language="C#" MasterPageFile="~/CRMMaster.Master" AutoEventWireup="true" CodeBehind="CustomerAccount.aspx.cs" Inherits="CRM.CustomerAccount" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxTabControl" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxMenu" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxClasses" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxLoadingPanel" tagprefix="dx" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <p>
        <dx:ASPxPageControl ID="CustomerAccountPageControl" runat="server" 
            ActiveTabIndex="0" Height="480px" Width="759px">
            <TabPages>
                <dx:TabPage Name="CreateCustomerPage" Text="Create Customer Account" 
                    ToolTip="To create customer Account">
                    <ContentCollection>
                        <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                            Customer ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtCreateCustomerID" runat="server"></asp:TextBox>
                            <br />
                            <br />
                            Customer Name&nbsp;&nbsp;
                            <asp:TextBox ID="txtCreateCustomerName" runat="server"></asp:TextBox>
                            <br />
                            <br />
                            Billing Address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtCreateBillingAddress" runat="server" TextMode="MultiLine"></asp:TextBox>
                            <br />
                            <br />
                            Shipping Address&nbsp;
                            <asp:TextBox ID="txtCreateShippingAddress" runat="server" TextMode="MultiLine"></asp:TextBox>
                            <br />
                            <br />
                            Email&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtCreateEmail" runat="server"></asp:TextBox>
                            <br />
                            <br />
                            Contact No&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox 
                                ID="txtCreateContactNo" runat="server"></asp:TextBox>
                            <br />
                            <br />
                            Description&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtCreateDescription" runat="server"></asp:TextBox>
                            <br />
                            <br />
                            Gender&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:DropDownList ID="ddlCustomerGender" runat="server">
                                <asp:ListItem>Male</asp:ListItem>
                                <asp:ListItem>Female</asp:ListItem>
                            </asp:DropDownList>
                            <br />
                            <br />
                            Date Of Birth<br />
                            <dx:ASPxTimeEdit ID="CreateDateOfBirthTE" runat="server" 
                                CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" 
                                EditFormat="DateTime" SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css">
                                <SpinButtons>
                                    <IncrementImage>
                                        <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditIncrementImageHover_Aqua" 
                                            PressedCssClass="dxEditors_edtSpinEditIncrementImagePressed_Aqua" />
                                    </IncrementImage>
                                    <DecrementImage>
                                        <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditDecrementImageHover_Aqua" 
                                            PressedCssClass="dxEditors_edtSpinEditDecrementImagePressed_Aqua" />
                                    </DecrementImage>
                                </SpinButtons>
                            </dx:ASPxTimeEdit>
                            <br />
                            <dx:ASPxLoadingPanel ID="ASPxLoadingPanel1" runat="server" 
                                CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" 
                                CssPostfix="BlackGlass" ClientInstanceName="Loading Panel" Modal="True">
                                <Image Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                                </Image>
                            </dx:ASPxLoadingPanel>
                            
                            <asp:Button ID="btnCreateCustomer" runat="server" 
                                OnClick="btnCreateCustomer_Click" Text="Create" />
                            
                            <br />
                            <br />
                            
                        </dx:ContentControl>
                    </ContentCollection>
                </dx:TabPage>
                <dx:TabPage Name="UpdateCustomerPage" Text="Update Customer Account">
                    <ContentCollection>
                        <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                            Customer ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="TextBox8" runat="server"></asp:TextBox>
                            <br />
                            <br />
                            Customer Name&nbsp;&nbsp;
                            <asp:TextBox ID="TextBox9" runat="server"></asp:TextBox>
                            <br />
                            <br />
                            Billing Address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="TextBox10" runat="server" TextMode="MultiLine"></asp:TextBox>
                            <br />
                            <br />
                            Shipping Address&nbsp;
                            <asp:TextBox ID="TextBox11" runat="server" TextMode="MultiLine"></asp:TextBox>
                            <br />
                            <br />
                            Email&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="TextBox12" runat="server"></asp:TextBox>
                            <br />
                            <br />
                            Contact No&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="TextBox13" runat="server"></asp:TextBox>
                            <br />
                            <br />
                            Description&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="TextBox14" runat="server"></asp:TextBox>
                            <br />
                            <br />
                            Gender&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:DropDownList ID="ddlCustomerGender0" runat="server">
                                <asp:ListItem>Male</asp:ListItem>
                                <asp:ListItem>Female</asp:ListItem>
                            </asp:DropDownList>
                            <br />
                            <br />
                            Date Of Birth<br />
                            <dx:ASPxTimeEdit ID="ASPxTimeEdit2" runat="server" 
                                CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" 
                                EditFormat="DateTime" SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css">
                                <SpinButtons>
                                    <IncrementImage>
                                        <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditIncrementImageHover_Aqua" 
                                            PressedCssClass="dxEditors_edtSpinEditIncrementImagePressed_Aqua" />
                                    </IncrementImage>
                                    <DecrementImage>
                                        <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditDecrementImageHover_Aqua" 
                                            PressedCssClass="dxEditors_edtSpinEditDecrementImagePressed_Aqua" />
                                    </DecrementImage>
                                </SpinButtons>
                            </dx:ASPxTimeEdit>
                            <br />
                            <dx:ASPxLoadingPanel ID="ASPxLoadingPanel2" runat="server" 
                                ClientInstanceName="Loading Panel" 
                                CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                Modal="True">
                                <Image Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                                </Image>
                            </dx:ASPxLoadingPanel>
                            <asp:Button ID="btnUpdateCustomer" runat="server" Text="Update" />
                        </dx:ContentControl>
                    </ContentCollection>
                </dx:TabPage>
                <dx:TabPage Name="ViewCustomerPage" Text="View Customer Account" 
                    ToolTip="To view the customer Account">
                    <ContentCollection>
                        <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                            Customer ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtViewCustomerID" runat="server"></asp:TextBox>
                            <br />
                            <br />
                            Customer Name&nbsp;&nbsp;
                            <asp:TextBox ID="txtViewCustomerName" runat="server"></asp:TextBox>
                            <br />
                            <br />
                            Billing Address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtViewCustomerBillingAddress" runat="server" 
                                TextMode="MultiLine"></asp:TextBox>
                            <br />
                            <br />
                            Shipping Address&nbsp;
                            <asp:TextBox ID="txtViewCustomerShippingAddress" runat="server" 
                                TextMode="MultiLine"></asp:TextBox>
                            <br />
                            <br />
                            Email&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtViewCustomerEmail" runat="server"></asp:TextBox>
                            <br />
                            <br />
                            Contact No&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="txtViewCustomerContactNo" runat="server"></asp:TextBox>
                            <br />
                            <br />
                            Description&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtViewCustomerDescription" runat="server"></asp:TextBox>
                            <br />
                            <br />
                            Gender&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:DropDownList ID="ddlViewCustomerGender1" 
                                runat="server">
                                <asp:ListItem>Male</asp:ListItem>
                                <asp:ListItem>Female</asp:ListItem>
                            </asp:DropDownList>
                            <br />
                            <br />
                            Date Of Birth<br />
                            <dx:ASPxTimeEdit ID="ViewCustomerDateOfBirthTE" runat="server" 
                                CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" 
                                EditFormat="DateTime" SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css">
                                <SpinButtons>
                                    <IncrementImage>
                                        <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditIncrementImageHover_Aqua" 
                                            PressedCssClass="dxEditors_edtSpinEditIncrementImagePressed_Aqua" />
                                    </IncrementImage>
                                    <DecrementImage>
                                        <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditDecrementImageHover_Aqua" 
                                            PressedCssClass="dxEditors_edtSpinEditDecrementImagePressed_Aqua" />
                                    </DecrementImage>
                                </SpinButtons>
                            </dx:ASPxTimeEdit>
                            <br />
                            <dx:ASPxLoadingPanel ID="ASPxLoadingPanel3" runat="server" 
                                ClientInstanceName="Loading Panel" 
                                CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                Modal="True">
                                <Image Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                                </Image>
                            </dx:ASPxLoadingPanel>
                            <asp:Button ID="btnViewCustomerAccount" runat="server" 
                                OnClick="btnViewCustomerAccount_Click" Text="View" />
                            <br />
                        </dx:ContentControl>
                    </ContentCollection>
                </dx:TabPage>
                <dx:TabPage Name="Delete Customer Page" Text="Delete Customer Account" 
                    ToolTip="To delete customer account">
                    <ContentCollection>
                        <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                            Customer ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtDeleteCustomerID" runat="server"></asp:TextBox>
                            <br />
                            <br />
                            Customer Name&nbsp;&nbsp;
                            <asp:TextBox ID="TextBox23" runat="server"></asp:TextBox>
                            <br />
                            <br />
                            Billing Address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="TextBox24" runat="server" TextMode="MultiLine"></asp:TextBox>
                            <br />
                            <br />
                            Shipping Address&nbsp;
                            <asp:TextBox ID="TextBox25" runat="server" TextMode="MultiLine"></asp:TextBox>
                            <br />
                            <br />
                            Email&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="TextBox26" runat="server"></asp:TextBox>
                            <br />
                            <br />
                            Contact No&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="TextBox27" runat="server"></asp:TextBox>
                            <br />
                            <br />
                            Description&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="TextBox28" runat="server"></asp:TextBox>
                            <br />
                            <br />
                            Gender&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:DropDownList ID="ddlCustomerGender2" runat="server">
                                <asp:ListItem>Male</asp:ListItem>
                                <asp:ListItem>Female</asp:ListItem>
                            </asp:DropDownList>
                            <br />
                            <br />
                            Date Of Birth<br />
                            <dx:ASPxTimeEdit ID="ASPxTimeEdit4" runat="server" 
                                CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" 
                                EditFormat="DateTime" SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css">
                                <SpinButtons>
                                    <IncrementImage>
                                        <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditIncrementImageHover_Aqua" 
                                            PressedCssClass="dxEditors_edtSpinEditIncrementImagePressed_Aqua" />
                                    </IncrementImage>
                                    <DecrementImage>
                                        <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditDecrementImageHover_Aqua" 
                                            PressedCssClass="dxEditors_edtSpinEditDecrementImagePressed_Aqua" />
                                    </DecrementImage>
                                </SpinButtons>
                            </dx:ASPxTimeEdit>
                            <br />
                            <dx:ASPxLoadingPanel ID="ASPxLoadingPanel4" runat="server" 
                                ClientInstanceName="Loading Panel" 
                                CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                Modal="True">
                                <Image Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                                </Image>
                            </dx:ASPxLoadingPanel>
                            <asp:Button ID="btnDeletebyCustomerID" runat="server" Text="Delete" 
                                OnClick="btnDeleteCustomerAccount_Click" />
                        </dx:ContentControl>
                    </ContentCollection>
                </dx:TabPage>
            </TabPages>
        </dx:ASPxPageControl>
        
    </p>
    <p>
        &nbsp;</p>
    <br />
    <br />
    <p>
        &nbsp;</p>
    <br />
    <br />
    <br />
    <p>
        &nbsp;&nbsp; &nbsp;</p>
    <p>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </p>
    <br />
</asp:Content>


<asp:Content ID="Content2" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">
    <p>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            DataObjectTypeName="CRM.Business_Object.CustomerAccountObject" 
            DeleteMethod="DeleteCustomerList" InsertMethod="InsertCustomerList" 
            OldValuesParameterFormatString="original_{0}" SelectMethod="viewCustomerList" 
            TypeName="CRM.Business_Object.CustomerAccountObject" 
            UpdateMethod="updateCustomerList"></asp:ObjectDataSource>
        <asp:GridView ID="GridView1" runat="server" DataSourceID="ObjectDataSource1">
            <Columns>
                <asp:BoundField />
            </Columns>
        </asp:GridView>
        <br />
    </p>
</asp:Content>




